#ifndef _HTTPUSERMGR_H
#define _HTTPUSERMGR_H

#include <map>
#include <boost/ptr_container/ptr_vector.hpp>
#include "httpuserdb.h"

class HTTPUserManager
{
public:
	HTTPUserManager();

	bool addUser(const HTTPUser & user);
	bool addUserDBFile(const std::string & filename);
	bool authUser(const std::string & name, const std::string & pass);
private:
	boost::ptr_vector<HTTPUserDB> m_userdbs;
	typedef boost::ptr_vector<HTTPUserDB>::iterator USERDB_ITER;
	std::map<std::string, HTTPUser> m_users;
	typedef std::map<std::string, HTTPUser>::iterator USER_ITER;
};

#endif
